/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tr.edu.ozyegin.ccrg.io;

import java.io.DataOutputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 *
 * @author becomen
 */
public class Writer implements Writable {

    public void write(String path, String toWrite) throws FileNotFoundException, IOException {
        FileOutputStream fos = new FileOutputStream(path);
        DataOutputStream dos = new DataOutputStream(fos);
        dos.writeUTF(toWrite + "\n");
        dos.close();
        fos.close();
    }
    
}
